package org.jeecg.modules.demo.commoditymanagement.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;

import java.io.Serializable;

/**
 * 商品信息
 */
@Data

@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "commodity_Info对象", description = "商品信息")
public class CommodityInfo implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
    /**
     * 商品分组id
     */
    @Excel(name = "商品分组id", width = 15)
    @ApiModelProperty(value = "商品分组id")
    private String groupId;
    /**
     * 商品分组名称
     */
    @Excel(name = "商品分组名称", width = 15)
    @ApiModelProperty(value = "商品分组名称")
    private String groupName;
    /**
     * 商品名
     */
    @Excel(name = "商品名", width = 15)
    @ApiModelProperty(value = "商品名")
    private String title;
    /**
     * 规格
     */
    @Excel(name = "规格", width = 15)
    @ApiModelProperty(value = "规格")
    private String sku;
    /**
     * 权重
     */
    @Excel(name = "权重", width = 15)
    @ApiModelProperty(value = "权重")
    private String weight;
    /**
     * 商品描述
     */
    @Excel(name = "商品描述", width = 15)
    @ApiModelProperty(value = "商品描述")
    private String description;
    /**
     * 商品图
     */
    @Excel(name = "商品图", width = 15)
    @ApiModelProperty(value = "商品图")
    private String pic;
    /**
     * 价格
     */
    @Excel(name = "价格", width = 15)
    @ApiModelProperty(value = "价格")
    private String money;
    /**
     * 库存
     */
    @Excel(name = "库存", width = 15)
    @ApiModelProperty(value = "库存")
    private String inventory;
    /**
     * 折扣
     */
    @Excel(name = "折扣", width = 15)
    @ApiModelProperty(value = "折扣")
    private String discount;
    /**
     * 商品编码
     */
    @Excel(name = "商品编码", width = 15)
    @ApiModelProperty(value = "商品编码")
    private String code;
    /**
     * 成本价
     */
    @Excel(name = "成本价", width = 15)
    @ApiModelProperty(value = "成本价")
    private String priceCost;
    /**
     * 最低利润率限额
     */
    @Excel(name = "最低利润率限额", width = 15)
    @ApiModelProperty(value = "最低利润率限额")
    private String minimumMargin;
    /**
     * 毛利率
     */
    @Excel(name = "毛利率", width = 15)
    @ApiModelProperty(value = "毛利率")
    private String grossRate;
    /**
     * 状态 1 = 出售中  2 = 已售完 3=待售 4=下架
     */
    @Excel(name = "状态", width = 15)
    @ApiModelProperty(value = "状态")
    private String status;

    @Excel(name = "详情图", width = 15)
    @ApiModelProperty(value = "详情图")
    private String detailsUrl;

    private String storeId;

    @ApiModelProperty(value = "是否在小程序显示")
    private String isShow;

}
